<h1><?php echo __("Action's confirmation")?></h1>
<table>
  <thead>
    <tr>
      <th><?php echo __('Function')?></th>
      <th><?php echo __('User')?></th>
      <th><?php echo __('E-mail')?></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($states as $state): ?>
    <tr>
      <td><?php echo $state[0] ?></td>
      <td><?php echo $state[1]?></td>
      <td><?php echo $state[2] ?></td>
      <td><?php echo $state[3] ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<div class="buttons">
	<h3><?php echo $h3Text?></h3>
	<?php if(!isset($redirection)) $redirection = $sf_user->getAttribute('myRoute');?>
	<?php if(!isset($redirection) or is_null($redirection)) $redirection = 'mesdossiers/index';?>
	<?php if(!isset($redirection) or is_null($redirection)) $redirection = 'mesdossiers/index';?>
	<?php echo link_to('<img title="'.__('Continue') .'" src="/images/formulaires/suivant.png">',$redirection)?>
</div>
<?php if(!$sansMails):?>
<table>
  <thead>
    <tr>
      <th><?php echo __('Mails send')?></th>
    </tr>
  </thead>
  <tbody> 
  <tr>
       <td style="text-align: left;"> 
    		<?php if(!sfConfig::get('app_mails_mailsActive')) echo '<h2>(Mails inactif)</h2>'; ?> 
    		<?php 
    			foreach($textMail as $mail ){
    				echo utf8_encode($mail);
    				//echo '<br>==============================================================<br>';
    				echo '<hr style="visibility: visible;">'; 		
    			}
    		?>
		</td>
	</tr>
  </tbody>
</table>
<?php endif;?>
